﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using ORM.Common.DataAnnotations;
using ORM.Resources;

namespace ORM.Business.Models.Entities
{
    public class QuestionBookmark
    {
        #region Primitive properties

        public int Id { get; set; }
        [RequiredExtended]
        public int QuestionId { get; set; }

        [RequiredExtended]
        public int BookmarkById { get; set; }

        [RequiredExtended]
        public DateTime BookmarkDate { get; set; }

        #endregion

        #region Navigation properties

        [ForeignKey("QuestionId")]
        public virtual Question Question { get; set; }

        [ForeignKey("BookmarkById")]
        public virtual user BookmarkBy { get; set; }

        //public virtual ICollection<BookmarkQuestion> BookmarkQuestions { get; set; }
        //public virtual ICollection<BookmarkQuestion> BookmarkQuestions { get; set; }

        #endregion
    }
}